package com.fjp.heartguard.viewmodel

import androidx.lifecycle.MutableLiveData
import com.fjp.heartguard.app.data.bean.UserInfo
import com.fjp.heartguard.app.network.HttpRequestCoroutine
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

class SplashViewModel : BaseViewModel() {
    var userInfo = MutableLiveData<ResultState<UserInfo>>()
    fun getUserInfo() {
        request({
            HttpRequestCoroutine.getUserInfo()
        }, userInfo, false)

    }

}